﻿using System;

namespace FileWatcher.NodeInfo
{
    public abstract class NodeInfoBase : INodeInfo
    {
        private Uri m_path;

        public string Location
        {
            get { return this.m_path.LocalPath; }
        }

        public bool IsParent
        {
            get { return (this is IFolderNodeInfo) ? true : false; }
        }

        public NodeInfoBase(string path)
        {
            this.m_path = new Uri(path);
        }
    }
}